﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Workflow.Application.DTOs.Input;
using WorkflowCore.Interface;
using WorkflowCore.Models;

namespace Workflow.Application.Step
{
    /// <summary>
    /// 流程同意进行
    /// </summary>
    public class AgreeStep : StepBodyAsync
    {
        public override async Task<ExecutionResult> RunAsync(IStepExecutionContext context)
        {
            try
            {
                //获取传参
                var eventData = context.Item as AuditInput;
                // 其他业务代码省略。。。
                return ExecutionResult.Next();
            }
            catch (Exception)
            {

                throw;
            }
        }
    }
}
